import request2 from '@/utils/request2'

export function getResource(data) {
  return request2({
    url: '/old/resource',
    method: 'post',
    data
  })
}
export function upload_file(data) {
  return request2({
    url: '/old/resource/create',
    method: 'post',
    data
  })
}
export function del(id) {
  return request2({
    url: '/old/resource/delete',
    method: 'post',
    params: {
      id: id
    }
  })
}
